import service from '@/utils/request'

export const useAfficheApi = (id: number) => {
	return service.get('/module/affiche/findById' ,{
		params:{
			id:id
		}})
}

export const useAfficheSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/affiche/edit', dataForm)
	} else {
		return service.post('/nb/affiche/add', dataForm)
	}
}